def findCssEle(driver, css, operate="click"):
    # css selector => ele
    ele = driver.find_element_by_css_selector(css)
    if operate == 'click':
        ele.click()


def findCssEles(driver, css, index=0, operate="click"):
    # css selector  => [ele]
    ele = driver.find_elements_by_css_selector(css)[index]
    if operate == 'click':
        ele.click()


def findClassEles(driver, className, index=0, operate="click"):
    ele = driver.find_elements_by_class_name(className)[index]
    if operate == 'click':
        ele.click()
